'use strict'


class endadminlogin {

  constructor () {
    this.param = ''
  }

  //创建资源
  // async get (c) {
    //查询用户名获取用户信息
    //检测是否可以登录
  //   let token = c.service.tok.make({
  //     name: admins.admin_name,
  //   })

  //   c.send({token})
  // }
  async get (c) {
      let ret=await c.service.psql.query(`select * from admins`);
      c.send(JSON.stringify(ret.rows));
}

}

module.exports = endadminlogin
